const userState = {
    isLogin: false,
    isGuest: true

  };
  
  export default function LoginReducer(state = userState, action) {
    switch (action.type) {
      case 'SET_LOGIN': // 是否登录
        return {...state, isLogin: action.isLogin};
      case 'SET_IS_GUEST':
        return {...state, isGuest: action.isGuest};
      default:
        return state;
    }
  }